package com.bright.cwduijie.common.config;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;

import java.util.Locale;

/**
 * @Author hxj
 * @Date 2024/7/12 16:43
 * @Description jackson json转字符串时属性名称的大小写策略
 */

public class CustomPropertyStrategy extends PropertyNamingStrategy.PropertyNamingStrategyBase {

    public String translate(String input) {
        // 全部给大写
        return input.toUpperCase(Locale.ROOT);
    }
}
